<?php $this -> load->view('admin/inc/header');?>
<div id="gallery">
	<?php if (isset($images)):
			foreach($images as $image):	?>
			<div class="thumb">
				<a href="<?php echo $image['url']; ?>">
					<img src="<?php echo $image['thumb_url']; ?>" />
				</a>				
			</div>
		<?php endforeach; else: ?>
			<div id="blank_gallery">Please Upload an Image</div>
		<?php endif; ?>
</div>
<div id="upload">
<form action="<?php base_url();?>upload_images" method="post" enctype="multipart/form-data">   
	<input type="file" name="img" />
	<input type="submit" name="ok" value="Upload" />	
</form>
</div>